package com.sdp.wz.db.wz_now_num.service;

import com.sdp.wz.db.wz_now_num.entity.WzNowNum;
import com.sdp.wz.db.wz_warehouse_info.entity.WzWarehouseInfo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zsp
 * @since 2024-07-29
 */
public interface IWzNowNumService extends IService<WzNowNum> {
	
	List<WzNowNum> queryWzNowNumByWzCodes(List<String> wzNos,String warehouseCode);
	
	List<WzNowNum> queryWzNowNumByWarehouseCode(String warehouseCode);
	
	/**
	 * 查询库存预警
	 * @param queryWrapper
	 * @return
	 */
	int wzAlertNumber();

	/**
	 * 库存增加
	 * @param wzCodeList
	 * @param wzInputNumMap
	 */
	void wzNowNumAdd(List<String> wzNoList,Map<String,BigDecimal> wzInputNumMap,WzWarehouseInfo warehouseInfo);
	
	/**
	 * 库存减少
	 * @param wzCodeList
	 * @param wzInputNumMap
	 */
	void wzNowNumSubtract(List<String> wzNoList,Map<String,BigDecimal> wzOutputNumMap,WzWarehouseInfo warehouseInfo);
}
